﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using mBlog.Core.Services;
using mBlog.Data.Entities;
using mBlog.Data;

namespace mBlog.Core
{
    public class MetaWeblogRouteHandler : IRouteHandler
    {
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {
            mBlogContext context = new mBlogContext();
            return new MetaWeblog(
                new PostService(context),
                new CategoryService(context));
        }
    }
}